package com.hh.common.request.pagemanagement;

import com.hh.common.enums.BannerPosition;
import com.hh.common.validation.EnumValidation;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class BannerSaveRequest {

    private Integer id;

    @NotBlank(message = "图片必须上传")
    private String imgUrl;

    // 跳转类型 10=分类跳转、20=专区跳转、30=url跳转
    private String linkType;

    private String linkUrl;

    @EnumValidation(clazz = BannerPosition.class,method = "getCode",message = "位置类型不合法")
    private Integer position;

    private Integer isShow;
}
